import request from '@/utils/request'
// 获取物业列表
export function getPropetyListAPI(params) {
  return request({
    url: '/park/propertyfee',
    params
  })
}

// 删除
export function deletePropetyListAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'DELETE'
  })
}
// 添加
export function addPropetyListAPI(data) {
  return request({
    url: '/park/propertyfee',
    data
  })
}

// 查询所有楼宇
export function getBuildingAPI() {
  return request({
    url: 'park/all/building'
  })
}
// 查询所有企业
export function getEnterpriseAPI() {
  return request({
    url: 'park/all/enterprise'
  })
}

// 获取物业费预算金额
export function getPaymentAPI(data) {
  return request({
    url: 'park/propertyfee/pre/payment',
    method: 'post',
    data
  })
}
